package com.chzc.fm.duotin.bean.mine;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by BillSinla on 2016/7/1.
 */
public class SubItemBean {

    /**
     * id : 87103
     * title : 三分慵懒-耳朵的旅行
     * image_url : http://c3.duotin.com/i1/DT/dlEiE4D1yuwX-1FgU06wnri16fDiqhMbaWcA7YFLM_U.jpg
     * content_num : 248
     * subscribe_num : 630
     * play_num : 236189
     * updated : 2016-07-01 02:01:37
     * tag_image_url :
     * new_content_num : 0
     */

    private String id;
    private String title;
    private String image_url;
    private String content_num;
    private String subscribe_num;
    private String play_num;
    private String updated;
    private String tag_image_url;
    private int new_content_num;

    public static SubItemBean objectFromData(String str) {

        return new Gson().fromJson(str, SubItemBean.class);
    }

    public static List<SubItemBean> arraySubItemBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<SubItemBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getContent_num() {
        return content_num;
    }

    public void setContent_num(String content_num) {
        this.content_num = content_num;
    }

    public String getSubscribe_num() {
        return subscribe_num;
    }

    public void setSubscribe_num(String subscribe_num) {
        this.subscribe_num = subscribe_num;
    }

    public String getPlay_num() {
        return play_num;
    }

    public void setPlay_num(String play_num) {
        this.play_num = play_num;
    }

    public String getUpdated() {
        return updated;
    }

    public void setUpdated(String updated) {
        this.updated = updated;
    }

    public String getTag_image_url() {
        return tag_image_url;
    }

    public void setTag_image_url(String tag_image_url) {
        this.tag_image_url = tag_image_url;
    }

    public int getNew_content_num() {
        return new_content_num;
    }

    public void setNew_content_num(int new_content_num) {
        this.new_content_num = new_content_num;
    }
}
